package com.hlkj.baojin.dao;

import com.hlkj.baojin.entity.Dict;
import com.hlkj.baojin.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IDictDAO extends MongoRepository<Dict, String> {

    Dict findByType(Integer type);
    List<Dict> findByTypeAndCompanyIdNotNull(Integer type);
    Dict findByTypeAndKeys(Integer type,String key);
    Dict findByTypeAndCompanyId(Integer type, String companyId);
}
